package main

import (
	"fmt"
	"go_test/src/code.song.study/nosql"
	"golang.org/x/net/context"
	"time"
)

func main() {
	redisClient := nosql.Instance()
	background := context.Background()
	resp := redisClient.Set(background, "go_test", "dadasd", 10*time.Minute)
	fmt.Println(resp.Val())
	get := redisClient.Get(background, "go_test")
	fmt.Println(get.Val())
}
